package com.lbmb.photodrawaimanager.enums;

import com.lbmb.photodrawaimanager.exception.BusinessException;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2023/8/42:29 上午
 */
public interface ErrorCodeEnums {
    Integer getCode();

    String getMessage();

    default void toExceptionThrow() {
        throw new BusinessException(this);
    }
}
